<?php
/**
 * Created by PhpStorm.
 * User: xiaow_000
 * Date: 2016/1/11
 * Time: 11:16
 */
namespace Ntxx\Model;
use Think\Model\RelationModel;
class yearscrneryModel extends RelationModel{
    protected $_link = array(
        'yeartemplate'=>array(
            'mapping_type'      => self::BELONGS_TO,
            'class_name'        => 'yeartemplate',
            'foreign_key'   => 't_id',
            'mapping_name'  => 'template',
            //
            ),
        );
}